<!DOCTYPE html>
<html>
<head>
	<title>编辑用户 - EasyAccount</title>
	<?=$this->render('common/header')?>
</head>
<body class="fixed-nav bg-dark">
	<?=$this->render('common/navbar')?>
	<div class="content-wrapper">
	  	<div class="container-fluid">
			<h1>编辑用户</h1>
			<form id="editform" method="post" onsubmit="return false;">
				<div class="form-group row">
					<label for="form-id" class="col-sm-2 col-form-label">用户ID</label>
					<div class="col-sm-10"><input type="text" id="form-id" name="id" disabled></div>
				</div>
				<div class="form-group row">
					<label for="form-role" class="col-sm-2 col-form-label">用户类型</label>
					<div class="col-sm-10">
						<select id="form-role" class="form-control" name="role">
							<option value="0">普通用户</option>
							<option value="1">管理员</option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="form-group" class="col-sm-2 col-form-label">用户组</label>
					<div class="col-sm-10"><select id="form-group" class="form-control" name="group"></select></div>
				</div>
				<div class="form-group row">
					<label for="form-nickname" class="col-sm-2 col-form-label">昵称</label>
					<div class="col-sm-10"><input id="form-nickname" class="form-control" type="text" name="nickname" required></div>
				</div>
				<div class="form-group row">
					<label for="form-realname" class="col-sm-2 col-form-label">真实姓名</label>
					<div class="col-sm-10"><input id="form-realname" class="form-control" type="text" name="realname"></div>
				</div>
				<div class="form-group row">
					<label for="form-mail" class="col-sm-2 col-form-label">EMail</label>
					<div class="col-sm-10"><input id="form-mail" class="form-control" type="email" name="mail" required></div>
				</div>
				<div class="form-group row">
					<label for="form-phone" class="col-sm-2 col-form-label">手机号</label>
					<div class="col-sm-10"><input id="form-phone" class="form-control" type="text" name="phone"></div>
				</div>
				<div class="form-group row">
					<label for="form-avatar" class="col-sm-2 col-form-label">头像地址</label>
					<div class="col-sm-10"><input id="form-avatar" class="form-control" type="url" name="avatar"></div>
				</div>
				<div class="form-group row">
					<div class="col-sm-2"></div>
					<div class="col-sm-10"><button type="submit" class="btn btn-primary">保存</button></div>
				</div>
			</form>
		</div>
		<!-- end right Content here -->
	</div>
	<script>window.ea.page="user_edit";window.ea.id="<?=$id?>";</script>
	<?=$this->render('common/footer')?>
</body>
</html>